import request from '@/utils/request'

// 查询InventoryClass列表
export function listInventoryClass(query) {
  return request({
    url: '/business/InventoryClass/list',
    method: 'get',
    params: query
  })
}

// 查询InventoryClass详细
export function getInventoryClass(cinvccode) {
  return request({
    url: '/business/InventoryClass/' + cinvccode,
    method: 'get'
  })
}

// 新增InventoryClass
export function addInventoryClass(data) {
  return request({
    url: '/business/InventoryClass',
    method: 'post',
    data: data
  })
}

// 修改InventoryClass
export function updateInventoryClass(data) {
  return request({
    url: '/business/InventoryClass',
    method: 'put',
    data: data
  })
}

// 删除InventoryClass
export function delInventoryClass(cinvccode) {
  return request({
    url: '/business/InventoryClass/' + cinvccode,
    method: 'delete'
  })
}

// 导出InventoryClass
export function exportInventoryClass(query) {
  return request({
    url: '/business/InventoryClass/export',
    method: 'get',
    params: query
  })
}